<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import axios  from 'axios'

export default {
  name: 'HomeView',
  components: {
    HelloWorld
  },
  // 生命周期函数
  mounted(){
	  axios.get("/api/user/list").then((res)=>{
		  console.log(res.data)
	  }).catch((error)=>{
		  alert("发生异常")
	  })
  }
}
</script>
